package com.edu.chat.web.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.chat.web.common.model.R;
import com.edu.chat.web.controller.vo.CategoryVO;
import com.edu.chat.web.dto.LibraryTreeDTO;
import com.edu.chat.web.model.CsCategories;

/**
* @author 86177
* @description 针对表【cs_categories(分类信息表)】的数据库操作Service
* @createDate 2025-02-22 15:02:27
*/
public interface CsCategoriesService extends IService<CsCategories> {

	//初始化根目录
	R<Boolean> initRootCategory(Long libraryId);

	//新建节点
	R<Boolean> createCategory(CategoryVO categoryVO);

	//查询当前节点信息
	R<LibraryTreeDTO> queryTreeInfo(String libraryId, String categoryId);

	// 提取根节点查
	 String queryRootCategoryId(String libraryId);
}
